<script setup>
import { onMounted, ref } from 'vue'
const msg = ref('')

onMounted(()=>{

console.log('unmount b')
})
</script>

<template>
  <p>Current component: B</p>
  <span>Message is: {{ msg }}</span>
  <input v-model="msg">
</template>